package com.samoiloff.util.lang {

	/**
	 * @author Damirr
	 */
	public class XLIFFIdLangItem {
		
		private var _ids:Array;
		private var _value:Object;
		
		public function XLIFFIdLangItem(propName : String, value : Object) {
			_ids = propName.split(",");
			_value = value;
		}
		
		public function get ids(): Array {
			return _ids;
		}
		
		public function get value(): Object {
			return _value;
		}
		
		public function containsId(id:String):Boolean {
			for (var i:int =0; i<_ids.length; i++) {
				if (_ids[i] == id) {
					return true;
				}
			}
			return false;
		}
	}
}
